import request from '@/utils/request'

// 查询素材库详情列表
export function trainInforALL(query) {
  return request({
    url: '/system/aTrainInfor/trainInforALL',
    method: 'get',
    params: query
  })
}

// 查询资料类别列表
export function listATrainInfor(query) {
  return request({
    url: '/system/aTrainInfor/list',
    method: 'get',
    params: query
  })
}

// 查询资料类别详细
export function getATrainInfor(id) {
  return request({
    url: '/system/aTrainInfor/' + id,
    method: 'get'
  })
}

// 新增资料类别
export function addATrainInfor(data) {
  return request({
    url: '/system/aTrainInfor',
    method: 'post',
    data: data
  })
}

// 修改资料类别
export function updateATrainInfor(data) {
  return request({
    url: '/system/aTrainInfor',
    method: 'put',
    data: data
  })
}

// 删除资料类别
export function delATrainInfor(id) {
  return request({
    url: '/system/aTrainInfor/' + id,
    method: 'delete'
  })
}
